home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Games / Tetris / Source / TetApp.h < prev    next >
Text File  |  1975-04-26  |  1KB  |  56 lines

  1.  
  2. #import <appkit/Application.h>
  3.  
  4. @interface TetApp:Application
  5. {
  6.     id tetrisView;                  // The view where the action takes place.
  7.     id level;
  8.     id levelLeft;
  9.     id levelRight;
  10.     id pauseButton;
  11.     id pauseDisplay;
  12.     id scoreKeeper;
  13.     id showNext;
  14.     id startButton;
  15.     id tetrisWindow;                  // The Main window
  16.      id controlBox;
  17.      id controlWindow;              // The control panel's window
  18.      id colorSwitch;                  // Color Switch id on Control Panel
  19.      id randomField;                  // Number of random rows field on Control Panel
  20.      id randomSlider;
  21.     BOOL started;
  22.     BOOL paused;
  23.      BOOL gameInColor, colorOff;
  24.      int numRandomRows;
  25.      id showNextSwitch;
  26. }
  27.  
  28. + new;
  29.  
  30. - setLevelLeft:anObject;
  31. - setLevelRight:anObject;
  32. - setTetrisWindow:anObject;
  33.  
  34. - appDidInit:sender;
  35. - resignActiveApp;
  36.  
  37. - start:sender;
  38. - pause:sender;
  39.  
  40. - gameOver;
  41. - (BOOL) isGameColor;
  42.  
  43. - levelLeft:sender;
  44. - levelRight:sender;
  45. - adjustColor:sender;
  46.  
  47. - terminate:sender;
  48. - windowWillMiniaturize:sender toMiniwindow:miniwindow;
  49.  
  50. // Private methods
  51. - updateRight:(int) theLevel;
  52. - updateLeft:(int) theLevel;
  53. - setRandomRows:sender;
  54.  
  55. @end
  56.